package com.wicket.okrbff.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.ConfSchemeService;
import com.wicket.okrbff.biz.service.dto.common.*;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.dto.TreeNode;
import com.wicket.okrbff.common.util.CommonFunctionHelper;
import com.wicket.okrbff.common.util.RedisUtil;
import com.wicket.okrcalc.common.annotations.BanAuto;
import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrcomponent.integration.dto.*;
import com.wicket.okrframework.integration.FwBaseBaseClient;
import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import com.wicket.okrframework.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrframework.integration.FwBaseMemberClient;
import com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerListComReqDto;
import com.wicket.okrcomponent.integration.FwCompInterfaceModeClient;
import com.wicket.okrcomponent.integration.FwCompDashboradStandardDataClient;


/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class ConfSchemeServiceImpl implements ConfSchemeService {
    @Resource
    FwCompConfSchemeClient confSchemeClient;
    @Resource
    FwCompConfSchemeClient fwCompConfSchemeClient;
    @Resource
    FwBaseInductionRecordClient fwBaseInductionRecordClient;
    @Resource
    private RedisUtil redisUtil;

    @Resource
    private FwBaseBaseClient fwBaseBaseClient;
@Resource
  FwBaseMemberClient fwBaseMemberClient;
@Resource
  FwCompInterfaceModeClient fwCompInterfaceModeClient;
@Resource
  FwCompDashboradStandardDataClient fwCompDashboradStandardDataClient;

    /**
     * 1111111B2-3查评价模板文案结果列表（模式验证）[2319]
     */
    @Trace(operationName = "1111111B2-3查评价模板文案结果列表（模式验证）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryEvaTempCopywriterListRespDto queryEvaTempCopywriterList(BffQueryEvaTempCopywriterListReqDto reqDto) {


        //步骤0: 1111111D2-3查评价模板文案结果列表（模式验证） - queryEvaTempCopywriterList
        QueryEvaTempCopywriterListRespDto queryEvaTempCopywriterListRespDto = null;
        QueryEvaTempCopywriterListReqDto queryEvaTempCopywriterListReqDto = new QueryEvaTempCopywriterListReqDto();


        /*1111111D2-3查评价模板文案结果列表（模式验证）[2318]   */
        queryEvaTempCopywriterListRespDto = fwCompConfSchemeClient.queryEvaTempCopywriterList(queryEvaTempCopywriterListReqDto).getData();


        BffQueryEvaTempCopywriterListRespDto retData = new BffQueryEvaTempCopywriterListRespDto();


        return retData;
    }



    /**
   * B2-3查询分组下配置项列表(边界)[2101]
   * gen by moon at 9/8/2022, 6:28:45 PM
   */
    @Trace(operationName = "B2-3查询分组下配置项列表(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryConfClassItemListBorderRespDto queryConfClassItemListBorder(BffQueryConfClassItemListBorderReqDto reqDto){
      
       
       QueryConfClassItemListRespDto queryConfClassItemListRespDto_1 =null;
BatchQueryConfItemOptionRespDto batchQueryConfItemOptionRespDto_1 =null;
//步骤0: D2-3查询分组下配置项列表 - queryConfClassItemList
     QueryConfClassItemListRespDto queryConfClassItemListRespDto = null;
    QueryConfClassItemListReqDto queryConfClassItemListReqDto=new QueryConfClassItemListReqDto();
  if(reqDto!=null){
      queryConfClassItemListReqDto.setConfItemClassId(reqDto.getConfItemClassId());//sourceId:61967_1
    }
  
    /*D2-3查询分组下配置项列表[1995]   */
    Assert.isNull(queryConfClassItemListReqDto.getConfItemClassId(),"B2-3查询分组下配置项列表(边界)-D2-3查询分组下配置项列表-方案分组ID不能为空",false);
      queryConfClassItemListRespDto = fwCompConfSchemeClient.queryConfClassItemList(queryConfClassItemListReqDto).getData();
      Assert.isTrue(queryConfClassItemListRespDto== null||  queryConfClassItemListRespDto.getConfClassItemList() ==null|| queryConfClassItemListRespDto.getConfClassItemList().size()==0 ,"返回值不能为空",false);
      
      queryConfClassItemListRespDto_1 = queryConfClassItemListRespDto;
    
//步骤1: D2-3批量查询配置项下选项关系列表 - batchQueryConfItemOption
     BatchQueryConfItemOptionRespDto batchQueryConfItemOptionRespDto = null;
    if(queryConfClassItemListRespDto !=null){
          BatchQueryConfItemOptionReqDto batchQueryConfItemOptionReqDto=new BatchQueryConfItemOptionReqDto();
  if(queryConfClassItemListRespDto!=null){
      batchQueryConfItemOptionReqDto.setConfItemOptionList(queryConfClassItemListRespDto.getConfClassItemList().stream().map(item->item.getConfItemId())
        .collect(Collectors.toList()));//sourceId:63368_1
    }
if(reqDto!=null){
      batchQueryConfItemOptionReqDto.setApplexRelId(reqDto.getApplexRelId());//sourceId:314739_1
batchQueryConfItemOptionReqDto.setResultAspObjId(reqDto.getResultAspObjId());//sourceId:62031_1
batchQueryConfItemOptionReqDto.setConfSchemeCode(reqDto.getConfSchemeCode());//sourceId:61980_1
    }
  
    /*D2-3批量查询配置项下选项关系列表[2126]   */
    Assert.isNull(batchQueryConfItemOptionReqDto.getConfSchemeCode(),"B2-3查询分组下配置项列表(边界)-D2-3批量查询配置项下选项关系列表-配置方案标识不能为空",false);
      batchQueryConfItemOptionRespDto = fwCompConfSchemeClient.batchQueryConfItemOption(batchQueryConfItemOptionReqDto).getData();
      Assert.isTrue(batchQueryConfItemOptionRespDto== null||  batchQueryConfItemOptionRespDto.getConfItemOptionList() ==null|| batchQueryConfItemOptionRespDto.getConfItemOptionList().size()==0 ,"返回值不能为空",false);
      
      batchQueryConfItemOptionRespDto_1 = batchQueryConfItemOptionRespDto;
           }
    
BffQueryConfClassItemListBorderRespDto retData = new BffQueryConfClassItemListBorderRespDto();
  if(queryConfClassItemListRespDto_1!=null){
      retData.setConfClassItemList(queryConfClassItemListRespDto_1.getConfClassItemList().stream().map(item -> BeanUtil.toBean(item, BffConfClassItemDto.class)).collect(Collectors.toList()));//sourceId:62036_1
    }
if(batchQueryConfItemOptionRespDto_1!=null){
      retData.setConfItemOptionList(batchQueryConfItemOptionRespDto_1.getConfItemOptionList().stream().map(item -> BeanUtil.toBean(item, BffConfItemOptionDto.class)).collect(Collectors.toList()));//sourceId:62037_1
    }
  

      List<Object> allNodes =new ArrayList<>();
      allNodes.addAll(retData.getConfClassItemList());
allNodes.addAll(retData.getConfItemOptionList());
     List<TreeNode> nodeList = CommonFunctionHelper.buildTree(allNodes);
     retData.setTreeNode(nodeList);
     retData.setConfClassItemList(null);
retData.setConfItemOptionList(null);
    
return retData;
  }

    /**
     * B2-3查询配置方案详情(边界)[2080]
     */
    @Trace(operationName = "B2-3查询配置方案详情(边界)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryConfSchemeDetailBorderRespDto queryConfSchemeDetailBorder(BffQueryConfSchemeDetailBorderReqDto reqDto) {


        QueryConfSchemeDetailRespDto queryConfSchemeDetailRespDto_1 = null;
//步骤0: D2-3查询配置方案详情 - queryConfSchemeDetail
        QueryConfSchemeDetailRespDto queryConfSchemeDetailRespDto = null;
        QueryConfSchemeDetailReqDto queryConfSchemeDetailReqDto = new QueryConfSchemeDetailReqDto();
        if (reqDto != null) {
            queryConfSchemeDetailReqDto.setConfSchemeId(reqDto.getConfSchemeId());//sourceId:60556_1
        }

        /*D2-3查询配置方案详情[1981]   */
        queryConfSchemeDetailRespDto = fwCompConfSchemeClient.queryConfSchemeDetail(queryConfSchemeDetailReqDto).getData();

        queryConfSchemeDetailRespDto_1 = queryConfSchemeDetailRespDto;

        BffQueryConfSchemeDetailBorderRespDto retData = new BffQueryConfSchemeDetailBorderRespDto();
        if (queryConfSchemeDetailRespDto_1 != null) {
            retData.setConfSchemeId(queryConfSchemeDetailRespDto_1.getConfSchemeId());//sourceId:60575_1
            retData.setConfSchemeCode(queryConfSchemeDetailRespDto_1.getConfSchemeCode());//sourceId:60576_1
            retData.setConfSchemeName(queryConfSchemeDetailRespDto_1.getConfSchemeName());//sourceId:60578_1
            retData.setConfSchemeDes(queryConfSchemeDetailRespDto_1.getConfSchemeDes());//sourceId:60579_1
            retData.setApplObjType(queryConfSchemeDetailRespDto_1.getApplObjType());//sourceId:60580_1
            retData.setConfSchemeTypeCode(queryConfSchemeDetailRespDto_1.getConfSchemeTypeCode());//sourceId:60582_1
            retData.setIsInitialScheme(queryConfSchemeDetailRespDto_1.getIsInitialScheme());//sourceId:60583_1
            retData.setIsCustom(queryConfSchemeDetailRespDto_1.getIsCustom());//sourceId:60584_1
            retData.setIsOpenCustomConf(queryConfSchemeDetailRespDto_1.getIsOpenCustomConf());//sourceId:60585_1
        }


        return retData;
    }



    /**
   * B2-3查询配置项详情(边界)[1994]
   * gen by moon at 8/10/2022, 4:03:32 PM
   */
    @Trace(operationName = "B2-3查询配置项详情(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryConfItemDetailBorderRespDto queryConfItemDetailBorder(BffQueryConfItemDetailBorderReqDto reqDto){
      
       
       QueryConfItemDetailBorderRespDto queryConfItemDetailBorderRespDto_1 = null;
//步骤0: D2-3查询配置项详情（边界） - queryConfItemDetailBorder
     QueryConfItemDetailBorderRespDto queryConfItemDetailBorderRespDto = null;
    QueryConfItemDetailBorderReqDto queryConfItemDetailBorderReqDto=new QueryConfItemDetailBorderReqDto();
  if(reqDto!=null){
      queryConfItemDetailBorderReqDto.setClassConfItemId(reqDto.getClassConfItemId());//sourceId:122891_1
    }
  
    /*D2-3查询配置项详情（边界）[2000]   */
    Assert.isNull(queryConfItemDetailBorderReqDto.getClassConfItemId(),"B2-3查询配置项详情(边界)-D2-3查询配置项详情（边界）-分组配置项ID不能为空",false);
      queryConfItemDetailBorderRespDto = fwCompConfSchemeClient.queryConfItemDetailBorder(queryConfItemDetailBorderReqDto).getData();
      
      queryConfItemDetailBorderRespDto_1 = queryConfItemDetailBorderRespDto;
    
BffQueryConfItemDetailBorderRespDto retData = new BffQueryConfItemDetailBorderRespDto();
  if(queryConfItemDetailBorderRespDto_1!=null){
      retData.setClassConfItemId(queryConfItemDetailBorderRespDto_1.getClassConfItemId());//sourceId:122901_1
//retData.setExtensionField1(queryConfItemDetailBorderRespDto_1.getExtensionField1());//sourceId:122902_1
//retData.setExtensionField2(queryConfItemDetailBorderRespDto_1.getExtensionField2());//sourceId:122903_1
//retData.setExtensionField3(queryConfItemDetailBorderRespDto_1.getExtensionField3());//sourceId:122904_1
//retData.setThrowPlace(queryConfItemDetailBorderRespDto_1.getThrowPlace());//sourceId:136565_1
retData.setConfItemId(queryConfItemDetailBorderRespDto_1.getConfItemId());//sourceId:102887_1
retData.setShortName(queryConfItemDetailBorderRespDto_1.getShortName());//sourceId:58960_1
retData.setConfItemName(queryConfItemDetailBorderRespDto_1.getConfItemName());//sourceId:58961_1
retData.setConfItemCode(queryConfItemDetailBorderRespDto_1.getConfItemCode());//sourceId:58962_1
retData.setConfItemDes(queryConfItemDetailBorderRespDto_1.getConfItemDes());//sourceId:58963_1
retData.setIsVisible(queryConfItemDetailBorderRespDto_1.getIsVisible());//sourceId:58964_1
retData.setIsOpenCustomConf(queryConfItemDetailBorderRespDto_1.getIsOpenCustomConf());//sourceId:58965_1
retData.setIsBusiness(queryConfItemDetailBorderRespDto_1.getIsBusiness());//sourceId:58966_1
retData.setConfItemCategory(queryConfItemDetailBorderRespDto_1.getConfItemCategory());//sourceId:58967_1
retData.setIsSwitch(queryConfItemDetailBorderRespDto_1.getIsSwitch());//sourceId:58968_1
retData.setConfItemOptionList(queryConfItemDetailBorderRespDto_1.getConfItemOptionList().stream().map(item -> BeanUtil.toBean(item, BffConfItemOptionDto.class)).collect(Collectors.toList()));//sourceId:58972_1
    }
  

  
  
return retData;
  }



    /**
   * B2-3查配置菜单列表(公共)[2788]
   * gen by moon at 9/6/2022, 10:54:30 PM
   */
    @Trace(operationName = "B2-3查配置菜单列表(公共)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQuerySetMenusListComRespDto querySetMenusListCom(BffQuerySetMenusListComReqDto reqDto){
      
       
       QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_1 =null;
//步骤0: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setIsInitialScheme("TRUE");//sourceId:308141_1
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:308328_1
if(reqDto!=null){
      queryConfItemMatchAnswerListComReqDto.setResultAspObjId(reqDto.getResultAspObjId());//sourceId:101001_1
queryConfItemMatchAnswerListComReqDto.setResultAspObjType(reqDto.getResultAspObjType());//sourceId:100999_1
queryConfItemMatchAnswerListComReqDto.setConfItemCode(reqDto.getConfItemCode());//sourceId:100998_1
    }
  
    /*D2-3查配置项匹配答案列表(公共)（跨服务）[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"B2-3查配置菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-答案归属对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"B2-3查配置菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-答案归属对象类型不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"B2-3查配置菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsInitialScheme(),"B2-3查配置菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-是否初始方案答案不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"B2-3查配置菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-是否平台数据不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData();
      Assert.isTrue(queryConfItemMatchAnswerListComRespDto== null||  queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() ==null|| queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().size()==0 ,"返回值不能为空",false);
      
      queryConfItemMatchAnswerListComRespDto_1 = queryConfItemMatchAnswerListComRespDto;
    
BffQuerySetMenusListComRespDto retData = new BffQuerySetMenusListComRespDto();
  if(queryConfItemMatchAnswerListComRespDto_1!=null){
      retData.setConfSchemeItemResultList(queryConfItemMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> BeanUtil.toBean(item, BffConfSchemeItemResultDto.class)).collect(Collectors.toList()));//sourceId:101026_1
    }
  

  
  
return retData;
  }

    /**
   * B2-3判断UCD菜单判断(边界)[2183]
   * gen by moon at 12/19/2023, 7:17:47 PM
   */
    @Trace(operationName = "B2-3判断UCD菜单判断(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffJudgeMenuUcdJudgmentBorderRespDto judgeMenuUcdJudgmentBorder(BffJudgeMenuUcdJudgmentBorderReqDto reqDto){
      
       
       JudgeUcdMenuBorderRespDto judgeUcdMenuBorderRespDto_1 = null;
//步骤0: D1-2查询角色标识匹配结果详情 - queryRoleCodeMatchingResultsDetail
     QueryRoleCodeMatchingResultsDetailRespDto queryRoleCodeMatchingResultsDetailRespDto = null;
    QueryRoleCodeMatchingResultsDetailReqDto queryRoleCodeMatchingResultsDetailReqDto=new QueryRoleCodeMatchingResultsDetailReqDto();
  queryRoleCodeMatchingResultsDetailReqDto.setOriginalRoleMemberId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:196594_1
queryRoleCodeMatchingResultsDetailReqDto.setRoleCode("DEPT_LEADER");//CUSTOM_CONVENTION//sourceId:196595_1
  
    /*D1-2查询角色标识匹配结果详情[3775]   */
    Assert.isNull(queryRoleCodeMatchingResultsDetailReqDto.getOriginalRoleMemberId(),"B2-3判断UCD菜单判断(边界)-D1-2查询角色标识匹配结果详情-身份人员ID不能为空",false);
Assert.isNull(queryRoleCodeMatchingResultsDetailReqDto.getRoleCode(),"B2-3判断UCD菜单判断(边界)-D1-2查询角色标识匹配结果详情-角色标识不能为空",false);
      queryRoleCodeMatchingResultsDetailRespDto = fwBaseMemberClient.queryRoleCodeMatchingResultsDetail(queryRoleCodeMatchingResultsDetailReqDto).getData()/*vcase invoke 跨dubbo调用;*/;

      
      
    
//步骤1: D2-3判断UCD菜单(边界) - judgeUcdMenuBorder
     JudgeUcdMenuBorderRespDto judgeUcdMenuBorderRespDto = null;
    if(queryRoleCodeMatchingResultsDetailRespDto !=null){
          JudgeUcdMenuBorderReqDto judgeUcdMenuBorderReqDto=new JudgeUcdMenuBorderReqDto();
  if(queryRoleCodeMatchingResultsDetailRespDto!=null){
      judgeUcdMenuBorderReqDto.setRoleMemberId(queryRoleCodeMatchingResultsDetailRespDto.getRoleMemberId());//SimpleFieldAssign//sourceId:196622_1
    }
if(reqDto!=null){
      judgeUcdMenuBorderReqDto.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:64115_1
judgeUcdMenuBorderReqDto.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:64116_1
judgeUcdMenuBorderReqDto.setLevelNumber(reqDto.getLevelNumber());//SimpleFieldAssign//sourceId:64117_1
judgeUcdMenuBorderReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1428528_1
    }
  
    /*D2-3判断UCD菜单(边界)[2177]   */
    Assert.isNull(judgeUcdMenuBorderReqDto.getInductionRecordId(),"B2-3判断UCD菜单判断(边界)-D2-3判断UCD菜单(边界)-就职记录ID不能为空",false);
      judgeUcdMenuBorderRespDto = fwCompConfSchemeClient.judgeUcdMenuBorder(judgeUcdMenuBorderReqDto).getData()/*vcase invoke 跨dubbo调用;*/;

      
      judgeUcdMenuBorderRespDto_1 = judgeUcdMenuBorderRespDto;
           }
    
BffJudgeMenuUcdJudgmentBorderRespDto retData = new BffJudgeMenuUcdJudgmentBorderRespDto();
  if(judgeUcdMenuBorderRespDto_1!=null){
      retData.setEndValue(judgeUcdMenuBorderRespDto_1.getEndValue());//SimpleFieldAssign//sourceId:102642_1
    }
  

  
  
return retData;
  }

    /**
   * B2-3查询主导航菜单列表(边界)[2178]
   * gen by moon at 8/10/2022, 4:03:34 PM
   */
    @Trace(operationName = "B2-3查询主导航菜单列表(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMainNavMenusListBorderRespDto queryMainNavMenusListBorder(BffQueryMainNavMenusListBorderReqDto reqDto){
      
       
       QueryMainNavMenusListRespDto queryMainNavMenusListRespDto_1 = null;
//步骤0: D2-3查询主导航菜单列表 - queryMainNavMenusList
     QueryMainNavMenusListRespDto queryMainNavMenusListRespDto = null;
    QueryMainNavMenusListReqDto queryMainNavMenusListReqDto=new QueryMainNavMenusListReqDto();
  if(reqDto!=null){
      queryMainNavMenusListReqDto.setConfItemClassCode(reqDto.getConfItemClassCode());//sourceId:191216_1
    }
  
    /*D2-3查询主导航菜单列表[2179]   */
    Assert.isNull(queryMainNavMenusListReqDto.getConfItemClassCode(),"B2-3查询主导航菜单列表(边界)-D2-3查询主导航菜单列表-所属配置项分组标识不能为空",false);
      queryMainNavMenusListRespDto = fwCompConfSchemeClient.queryMainNavMenusList(queryMainNavMenusListReqDto).getData();
      
      queryMainNavMenusListRespDto_1 = queryMainNavMenusListRespDto;
    
BffQueryMainNavMenusListBorderRespDto retData = new BffQueryMainNavMenusListBorderRespDto();
  if(queryMainNavMenusListRespDto_1!=null){
      retData.setMainNavMenusList(queryMainNavMenusListRespDto_1.getMainNavMenusList().stream().map(item -> BeanUtil.toBean(item, BffMainNavMenusDto.class)).collect(Collectors.toList()));//sourceId:191218_1
retData.setNavMenusList(queryMainNavMenusListRespDto_1.getNavMenusList().stream().map(item -> BeanUtil.toBean(item, BffNavMenusDto.class)).collect(Collectors.toList()));//sourceId:191219_1
    }
  

      List<Object> allNodes =new ArrayList<>();
      allNodes.addAll(retData.getMainNavMenusList());
allNodes.addAll(retData.getNavMenusList());
     List<TreeNode> nodeList = CommonFunctionHelper.buildTree(allNodes);
     retData.setTreeNode(nodeList);
     retData.setMainNavMenusList(null);
retData.setNavMenusList(null);
    
return retData;
  }
/**
   * B2-3查询空间基础配置结果详情[3496]
   * gen by moon at 4/20/2025, 4:35:10 PM
   */
    @Trace(operationName = "B2-3查询空间基础配置结果详情")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQuerySpaceBaseConfInfoDetailRespDto querySpaceBaseConfInfoDetail(BffQuerySpaceBaseConfInfoDetailReqDto reqDto){
      
       
       QuerySpaceDetailComRespDto querySpaceDetailComRespDto_1 =null;
       QuerySchemeMatchSingleResultToAnswerDetailComRespDto querySchemeMatchSingleResultToAnswerDetailComRespDto_1 =null;
QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_1 =null;
QuerySpacDashboardConfVariableDetailComRespDto querySpacDashboardConfVariableDetailComRespDto_1 =null;
QueryClassMatchResultToAnswerDetailComRespDto queryClassMatchResultToAnswerDetailComRespDto_1 =null;
//virtualUsage D1-2查空间详情(公共)  51094
      QuerySpaceDetailComRespDto querySpaceDetailComRespDto = null;
    QuerySpaceDetailComReqDto querySpaceDetailComReqDto=new QuerySpaceDetailComReqDto();
  querySpaceDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:232676_1_51094

    /*D1-2查空间详情(公共)[402]   */

      querySpaceDetailComRespDto = fwBaseBaseClient.querySpaceDetailCom(querySpaceDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      querySpaceDetailComRespDto_1 = querySpaceDetailComRespDto;
//virtualUsage D2查空间基本配置信息（组织架构设置分组和第三方服务配置分组）  51095
     QuerySchemeMatchSingleResultToAnswerDetailComRespDto querySchemeMatchSingleResultToAnswerDetailComRespDto = null;
    QuerySchemeMatchSingleResultToAnswerDetailComReqDto querySchemeMatchSingleResultToAnswerDetailComReqDto=new QuerySchemeMatchSingleResultToAnswerDetailComReqDto();
  querySchemeMatchSingleResultToAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:148697_1_51095
querySchemeMatchSingleResultToAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:148696_1_51095
querySchemeMatchSingleResultToAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:306711_1_51095
  
    /*D2查空间基本配置信息（组织架构设置分组和第三方服务配置分组）[3101]   */
    Assert.isNull(querySchemeMatchSingleResultToAnswerDetailComReqDto.getResultAspObjId(),"B2-3查询空间基础配置结果详情-D2查空间基本配置信息（组织架构设置分组和第三方服务配置分组）-开通对象ID不能为空",false);
    Assert.isNull(querySchemeMatchSingleResultToAnswerDetailComReqDto.getResultAspObjType(),"B2-3查询空间基础配置结果详情-D2查空间基本配置信息（组织架构设置分组和第三方服务配置分组）-开通对象类型编码不能为空",false);
Assert.isNull(querySchemeMatchSingleResultToAnswerDetailComReqDto.getIsPlatData(),"B2-3查询空间基础配置结果详情-D2查空间基本配置信息（组织架构设置分组和第三方服务配置分组）-是否标准答案不能为空",false);
      querySchemeMatchSingleResultToAnswerDetailComRespDto = fwCompConfSchemeClient.querySchemeMatchSingleResultToAnswerDetailCom(querySchemeMatchSingleResultToAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      

      querySchemeMatchSingleResultToAnswerDetailComRespDto_1 = querySchemeMatchSingleResultToAnswerDetailComRespDto;
if((querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getIsOpenPreview() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getIsOpenPreview().equals("TRUE"))) {
        //if(D2查空间基本配置信息（组织架构设置分组和第三方服务配置分组）.是否开启预览 等于 是)  74025

QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
    com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2046530_1_74026
queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:2046531_1_74026
queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("IS_OPEN_PREVIEW");//CUSTOM_CONVENTION//sourceId:2046532_1_74026
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:2046533_1_74026

    /*D2查空间开启预览的预览地址[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"B2-3查询空间基础配置结果详情-D2查空间开启预览的预览地址-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(),"B2-3查询空间基础配置结果详情-D2查空间开启预览的预览地址-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"B2-3查询空间基础配置结果详情-D2查空间开启预览的预览地址-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"B2-3查询空间基础配置结果详情-D2查空间开启预览的预览地址-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchAnswerDetailComRespDto_1 = queryConfItemMatchAnswerDetailComRespDto;
      }
//virtualUsage D2查询空间大屏配置参数(公共)  70017
      QuerySpacDashboardConfVariableDetailComRespDto querySpacDashboardConfVariableDetailComRespDto = null;
    QuerySpacDashboardConfVariableDetailComReqDto querySpacDashboardConfVariableDetailComReqDto=new QuerySpacDashboardConfVariableDetailComReqDto();
  querySpacDashboardConfVariableDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1866973_1_70017

    /*D2查询空间大屏配置参数(公共)[9809]   */
    Assert.isNull(querySpacDashboardConfVariableDetailComReqDto.getSpaceId(),"B2-3查询空间基础配置结果详情-D2查询空间大屏配置参数(公共)-空间ID不能为空",false);
      querySpacDashboardConfVariableDetailComRespDto = fwCompDashboradStandardDataClient.querySpacDashboardConfVariableDetailCom(querySpacDashboardConfVariableDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      querySpacDashboardConfVariableDetailComRespDto_1 = querySpacDashboardConfVariableDetailComRespDto;
if((querySchemeMatchSingleResultToAnswerDetailComRespDto!= null&&  querySchemeMatchSingleResultToAnswerDetailComRespDto.getIsUseWebsocket() !=null && querySchemeMatchSingleResultToAnswerDetailComRespDto.getIsUseWebsocket().equals("TRUE"))) {
        //if(D2查空间基本配置信息（组织架构设置分组和第三方服务配置分组）.是否启用Websocket 等于 是)  51096
  
QueryClassMatchResultToAnswerDetailComRespDto queryClassMatchResultToAnswerDetailComRespDto = null;
    QueryClassMatchResultToAnswerDetailComReqDto queryClassMatchResultToAnswerDetailComReqDto=new QueryClassMatchResultToAnswerDetailComReqDto();
  queryClassMatchResultToAnswerDetailComReqDto.setResultAspObjType("PLATFORM");//sourceId:1205336_1_51097
queryClassMatchResultToAnswerDetailComReqDto.setConfItemClassCode("TRIPLICITIES_SERVICE_CLASS");//CUSTOM_CONVENTION//sourceId:1205337_1_51097
queryClassMatchResultToAnswerDetailComReqDto.setIsPlatData("TRUE");//sourceId:1205338_1_51097
    
    /*D2-3查websocket服务相关前端配置[3088]   */
    Assert.isNull(queryClassMatchResultToAnswerDetailComReqDto.getResultAspObjType(),"B2-3查询空间基础配置结果详情-D2-3查websocket服务相关前端配置-开通对象类型编码不能为空",false);
Assert.isNull(queryClassMatchResultToAnswerDetailComReqDto.getConfItemClassCode(),"B2-3查询空间基础配置结果详情-D2-3查websocket服务相关前端配置-分组标识不能为空",false);
Assert.isNull(queryClassMatchResultToAnswerDetailComReqDto.getIsPlatData(),"B2-3查询空间基础配置结果详情-D2-3查websocket服务相关前端配置-是否标准答案不能为空",false);
      queryClassMatchResultToAnswerDetailComRespDto = fwCompConfSchemeClient.queryClassMatchResultToAnswerDetailCom(queryClassMatchResultToAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      

      queryClassMatchResultToAnswerDetailComRespDto_1 = queryClassMatchResultToAnswerDetailComRespDto;
      }
BffQuerySpaceBaseConfInfoDetailRespDto retData = new BffQuerySpaceBaseConfInfoDetailRespDto();
  if(querySchemeMatchSingleResultToAnswerDetailComRespDto_1!=null){
      retData.setConfSchemeId(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getConfSchemeId());//SimpleFieldAssign//sourceId:148722_1
retData.setOrgStructureModel(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getOrgStructureModel());//SimpleFieldAssign//sourceId:148723_1
retData.setIsIntergration(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsIntergration());//SimpleFieldAssign//sourceId:148724_1
retData.setIsAllowImport(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsAllowImport());//SimpleFieldAssign//sourceId:148725_1
retData.setIsOpenApprovalProcess(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenApprovalProcess());//SimpleFieldAssign//sourceId:148726_1
retData.setOpenManyOrg(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getOpenManyOrg());//SimpleFieldAssign//sourceId:148727_1
retData.setIsOpenSmsService(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenSmsService());//SimpleFieldAssign//sourceId:148728_1
retData.setIsOpenCommunicate(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenCommunicate());//SimpleFieldAssign//sourceId:1118353_1
retData.setThirdQaSystem(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getThirdQaSystem());//SimpleFieldAssign//sourceId:1118354_1
retData.setIsOpenCaucusController(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenCaucusController());//SimpleFieldAssign//sourceId:1124069_1
retData.setIsShowDirector(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsShowDirector());//SimpleFieldAssign//sourceId:1183278_1
retData.setIsEnableDeptTargetTaskBookModel(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsEnableDeptTargetTaskBookModel());//SimpleFieldAssign//sourceId:1201426_1
retData.setFrameNavMode(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getFrameNavMode());//SimpleFieldAssign//sourceId:1282181_1
retData.setIsUseWebsocket(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsUseWebsocket());//SimpleFieldAssign//sourceId:1192748_1
retData.setIsOpenTaskMgtApp(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenTaskMgtApp());//SimpleFieldAssign//sourceId:1343462_1
retData.setIsEnableOffcialDocApp(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsEnableOffcialDocApp());//SimpleFieldAssign//sourceId:1396366_1
retData.setIsOpenUcdWorkTask(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenUcdWorkTask());//SimpleFieldAssign//sourceId:1396367_1
retData.setIsDisplayLatestJoinedEmployees(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsDisplayLatestJoinedEmployees());//SimpleFieldAssign//sourceId:1560392_1
retData.setIsOpenQuestion(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenQuestion());//SimpleFieldAssign//sourceId:1396368_1
retData.setWorkTaskRelevancyObjectTier(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getWorkTaskRelevancyObjectTier());//SimpleFieldAssign//sourceId:1342005_1
retData.setIsOpenMidReportUpward(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenMidReportUpward());//SimpleFieldAssign//sourceId:1996921_1
retData.setIsMandateReportUpward(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsMandateReportUpward());//SimpleFieldAssign//sourceId:1436258_1
retData.setIsOpenIdeas(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenIdeas());//SimpleFieldAssign//sourceId:1494113_1
retData.setIsOpenWorkCircle(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenWorkCircle());//SimpleFieldAssign//sourceId:1494211_1
retData.setOpenTargetOrTaskManageApp(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getOpenTargetOrTaskManageApp());//SimpleFieldAssign//sourceId:1719421_1
retData.setIsOpenBatchIssueWorkTask(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenBatchIssueWorkTask());//SimpleFieldAssign//sourceId:1864066_1
retData.setTopDisplayCateOrDeptRank(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getTopDisplayCateOrDeptRank());//SimpleFieldAssign//sourceId:1882599_1
retData.setAchiveLibraryCommercialPara(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getAchiveLibraryCommercialPara());//SimpleFieldAssign//sourceId:1944013_1
retData.setAchieveAutoCert(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getAchieveAutoCert());//SimpleFieldAssign//sourceId:1952467_1
retData.setIsOpenMySubScence(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenMySubScence());//SimpleFieldAssign//sourceId:2016385_1
      retData.setIsOpenPreview(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenPreview());//SimpleFieldAssign//sourceId:2029975_1
      retData.setBusDiskParamsType(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getBusDiskParamsType());//SimpleFieldAssign//sourceId:2029976_1
      retData.setPrivateDiskParamsType(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getPrivateDiskParamsType());//SimpleFieldAssign//sourceId:2029977_1
      retData.setUploadType(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getUploadType());//SimpleFieldAssign//sourceId:2034465_1
      retData.setIsOpenSmartIntro(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenSmartIntro());//SimpleFieldAssign//sourceId:2037038_1
      retData.setIsOpenFrontSmartIntro(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getIsOpenFrontSmartIntro());//SimpleFieldAssign//sourceId:2037039_1
    }
if(querySpaceDetailComRespDto_1!=null){
      retData.setSenceCode(querySpaceDetailComRespDto_1.getSenceCode());//SimpleFieldAssign//sourceId:232703_1
    }
if(queryClassMatchResultToAnswerDetailComRespDto_1!=null){
      retData.setWebsocketAddressFront(queryClassMatchResultToAnswerDetailComRespDto_1.getWebsocketAddressFront());//SimpleFieldAssign//sourceId:1205344_1
retData.setWebsocketPortFront(queryClassMatchResultToAnswerDetailComRespDto_1.getWebsocketPortFront());//SimpleFieldAssign//sourceId:1205345_1
retData.setWebsocketAgreementFront(queryClassMatchResultToAnswerDetailComRespDto_1.getWebsocketAgreementFront());//SimpleFieldAssign//sourceId:1205346_1
retData.setWebsocketUserId(queryClassMatchResultToAnswerDetailComRespDto_1.getWebsocketUserId());//SimpleFieldAssign//sourceId:1205347_1
retData.setWebsocketUserPassword(queryClassMatchResultToAnswerDetailComRespDto_1.getWebsocketUserPassword());//SimpleFieldAssign//sourceId:1205348_1
    }
if(querySpacDashboardConfVariableDetailComRespDto_1!=null){
      retData.setDashboardEntranceConf(querySpacDashboardConfVariableDetailComRespDto_1.getDashboardEntranceConf());//SimpleFieldAssign//sourceId:1866977_1
retData.setIsOpenDashboardEntrance(querySpacDashboardConfVariableDetailComRespDto_1.getIsOpenDashboardEntrance());//SimpleFieldAssign//sourceId:1866978_1
retData.setDashboardOpenTypeCode(querySpacDashboardConfVariableDetailComRespDto_1.getDashboardOpenTypeCode());//SimpleFieldAssign//sourceId:1866979_1
retData.setDashboardColorStyle(querySpacDashboardConfVariableDetailComRespDto_1.getDashboardColorStyle());//SimpleFieldAssign//sourceId:2014399_1
    }
if(queryConfItemMatchAnswerDetailComRespDto_1!=null){
      retData.setPreviewAddress(queryConfItemMatchAnswerDetailComRespDto_1.getExtensionField1());//SimpleFieldAssign//sourceId:2046535_1
    }


  
  
return retData;
  }
/**
   * B2-3查询框架导航菜单列表(边界)[2178]
   * gen by moon at 9/5/2022, 3:31:14 PM
   */
    @Trace(operationName = "B2-3查询框架导航菜单列表(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
    @BanAuto
  @Override
  public BffQueryFrameNavMenusListBorderRespDto queryFrameNavMenusListBorder(BffQueryFrameNavMenusListBorderReqDto reqDto){
      
       
       QueryFrameNavMenusListRespDto queryFrameNavMenusListRespDto_1 =null;
BatchQuerySubNavMenusRespDto batchQuerySubNavMenusRespDto_1 =null;
//步骤0: D2-3查询框架导航菜单列表 - queryFrameNavMenusList
     QueryFrameNavMenusListRespDto queryFrameNavMenusListRespDto = null;
    QueryFrameNavMenusListReqDto queryFrameNavMenusListReqDto=new QueryFrameNavMenusListReqDto();
  queryFrameNavMenusListReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:247303_1
if(reqDto!=null){
      queryFrameNavMenusListReqDto.setConfItemCode(reqDto.getConfItemCode());//sourceId:252805_1
    }
  
    /*D2-3查询框架导航菜单列表[2179]   */
    Assert.isNull(queryFrameNavMenusListReqDto.getConfItemCode(),"B2-3查询框架导航菜单列表(边界)-D2-3查询框架导航菜单列表-配置项标识不能为空",false);
Assert.isNull(queryFrameNavMenusListReqDto.getResultAspObjId(),"B2-3查询框架导航菜单列表(边界)-D2-3查询框架导航菜单列表-答案归属对象ID不能为空",false);
      queryFrameNavMenusListRespDto = fwCompConfSchemeClient.queryFrameNavMenusList(queryFrameNavMenusListReqDto).getData();
      

      queryFrameNavMenusListRespDto_1 = queryFrameNavMenusListRespDto;
    
//步骤1: D2-3批量查询二级导航菜单 - batchQuerySubNavMenus
     BatchQuerySubNavMenusRespDto batchQuerySubNavMenusRespDto = null;
    if(queryFrameNavMenusListRespDto !=null){
          BatchQuerySubNavMenusReqDto batchQuerySubNavMenusReqDto=new BatchQuerySubNavMenusReqDto();
  batchQuerySubNavMenusReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:252840_1
if(queryFrameNavMenusListRespDto!=null){
      batchQuerySubNavMenusReqDto.setConfItemList(queryFrameNavMenusListRespDto.getFrameNavMenusList().stream().map(item->item.getConfOptionCode())
        .collect(Collectors.toList()));//sourceId:252839_1
    }
  
    /*D2-3批量查询二级导航菜单[4156]   */
    Assert.isNull(batchQuerySubNavMenusReqDto.getSpaceId(),"B2-3查询框架导航菜单列表(边界)-D2-3批量查询二级导航菜单-租户空间ID不能为空",false);
      batchQuerySubNavMenusRespDto = fwCompConfSchemeClient.batchQuerySubNavMenus(batchQuerySubNavMenusReqDto).getData();
      

      batchQuerySubNavMenusRespDto_1 = batchQuerySubNavMenusRespDto;
           }
    
BffQueryFrameNavMenusListBorderRespDto retData = new BffQueryFrameNavMenusListBorderRespDto();
  if(queryFrameNavMenusListRespDto_1!=null){
      retData.setMainNavMenusList(queryFrameNavMenusListRespDto_1.getFrameNavMenusList().stream().map(item -> {
          BffMainNavMenusDto elm = new BffMainNavMenusDto();
          elm.setOptionResultId(item.getOptionResultId());
          elm.setMenuName(item.getEndValue());
          elm.setMenuCode(item.getConfOptionCode());
          elm.setIcon(item.getExtensionField1());
          elm.setIsVisible(item.getExtensionField2());
          elm.setPath(item.getExtensionField3());
          elm.setOptionThrowPlace(item.getOptionThrowPlace());
          elm.setOrderNumber(item.getConfOptionSortNum());
          elm.setConfItemCode(item.getConfItemCode());
          return elm;
      }).collect(Collectors.toList()));//sourceId:247312_1
    }
if(batchQuerySubNavMenusRespDto_1!=null){
      retData.setSubNavMenusList(batchQuerySubNavMenusRespDto_1.getSubNavMenusList().stream().map(item -> {
          BffSubNavMenusDto elm = new BffSubNavMenusDto();
          elm.setOptionResultId(item.getOptionResultId());
          elm.setMenuName(item.getEndValue());
          elm.setMenuCode(item.getConfOptionCode());
          elm.setIcon(item.getExtensionField1());
          elm.setIsVisible(item.getExtensionField2());
          elm.setPath(item.getExtensionField3());
          elm.setOptionThrowPlace(item.getOptionThrowPlace());
          elm.setOrderNumber(item.getConfOptionSortNum());
          elm.setConfItemCode(item.getConfItemCode());
          return elm;
      }).collect(Collectors.toList()));//sourceId:252842_1
    }

        List<TreeNode> nodeList = new ArrayList<>();

// TODO: 2022/10/6 晓东，AB树，对接
       for(BffMainNavMenusDto main :retData.getMainNavMenusList()){
           TreeNode node = new TreeNode();
           node.setNLevel(1L);
           node.setSelf(main);
           nodeList.add(node);
           for(BffSubNavMenusDto sub : retData.getSubNavMenusList()){
               if(sub.getConfItemCode().equals(main.getMenuCode())){
                   TreeNode subNode = new TreeNode();
                   subNode.setNLevel(2L);
                   subNode.setSelf(sub);
                   node.getChildrenList().add(subNode);
               }
           }
       }




     retData.setTreeNode(nodeList);
     retData.setMainNavMenusList(null);
retData.setSubNavMenusList(null);
    
return retData;
  }
/**
   * B2-3查评价模板周期设置(边界)[2287]
   * gen by moon at 9/13/2022, 3:43:37 AM
   */
    @Trace(operationName = "B2-3查评价模板周期设置(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryEvaTempCycleConfDetailBorderRespDto queryEvaTempCycleConfDetailBorder(BffQueryEvaTempCycleConfDetailBorderReqDto reqDto){
      
       
       QuerySchemeClassMatchResultToAnswerDetailComRespDto querySchemeClassMatchResultToAnswerDetailComRespDto_1 =null;
//步骤0: D2-3查询方案分组匹配结果转答案(公共) - querySchemeClassMatchResultToAnswerDetailCom
     QuerySchemeClassMatchResultToAnswerDetailComRespDto querySchemeClassMatchResultToAnswerDetailComRespDto = null;
    QuerySchemeClassMatchResultToAnswerDetailComReqDto querySchemeClassMatchResultToAnswerDetailComReqDto=new QuerySchemeClassMatchResultToAnswerDetailComReqDto();
  querySchemeClassMatchResultToAnswerDetailComReqDto.setConfItemClassCode("CYCLE_SCHEME_CLASS");//CUSTOM_CONVENTION//sourceId:106267_1
querySchemeClassMatchResultToAnswerDetailComReqDto.setIsSingleResult("TRUE");//sourceId:106268_1
querySchemeClassMatchResultToAnswerDetailComReqDto.setIsInitialScheme("TRUE");//sourceId:310237_1
querySchemeClassMatchResultToAnswerDetailComReqDto.setIsPlatData("TRUE");//sourceId:310238_1
if(reqDto!=null){
      querySchemeClassMatchResultToAnswerDetailComReqDto.setConfSchemeCode(reqDto.getConfSchemeCode());//sourceId:106266_1
    }
  
    /*D2-3查询方案分组匹配结果转答案(公共)(跨服务）[3098]   */
    Assert.isNull(querySchemeClassMatchResultToAnswerDetailComReqDto.getConfSchemeCode(),"B2-3查评价模板周期设置(边界)-D2-3查询方案分组匹配结果转答案(公共)(跨服务）-配置方案标识不能为空",false);
Assert.isNull(querySchemeClassMatchResultToAnswerDetailComReqDto.getConfItemClassCode(),"B2-3查评价模板周期设置(边界)-D2-3查询方案分组匹配结果转答案(公共)(跨服务）-分组标识不能为空",false);
Assert.isNull(querySchemeClassMatchResultToAnswerDetailComReqDto.getIsSingleResult(),"B2-3查评价模板周期设置(边界)-D2-3查询方案分组匹配结果转答案(公共)(跨服务）-是否单一答案不能为空",false);
Assert.isNull(querySchemeClassMatchResultToAnswerDetailComReqDto.getIsInitialScheme(),"B2-3查评价模板周期设置(边界)-D2-3查询方案分组匹配结果转答案(公共)(跨服务）-是否初始方案答案不能为空",false);
Assert.isNull(querySchemeClassMatchResultToAnswerDetailComReqDto.getIsPlatData(),"B2-3查评价模板周期设置(边界)-D2-3查询方案分组匹配结果转答案(公共)(跨服务）-是否平台数据不能为空",false);
      querySchemeClassMatchResultToAnswerDetailComRespDto = fwCompConfSchemeClient.querySchemeClassMatchResultToAnswerDetailCom(querySchemeClassMatchResultToAnswerDetailComReqDto).getData();
      
      
      querySchemeClassMatchResultToAnswerDetailComRespDto_1 = querySchemeClassMatchResultToAnswerDetailComRespDto;
    
BffQueryEvaTempCycleConfDetailBorderRespDto retData = new BffQueryEvaTempCycleConfDetailBorderRespDto();
  if(querySchemeClassMatchResultToAnswerDetailComRespDto_1!=null){
      retData.setFatherCycleType(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getFatherCycleType());//sourceId:106280_1
retData.setFatherSubcycleQuantity(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getFatherSubcycleQuantity());//sourceId:106281_1
retData.setMidCycleType(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getMidCycleType());//sourceId:106282_1
retData.setMidSubcycleQuantity(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getMidSubcycleQuantity());//sourceId:106283_1
retData.setSubcycleType(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getSubcycleType());//sourceId:106284_1
retData.setMonocycleCycleType(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getMonocycleCycleType());//sourceId:106285_1
retData.setIrregularCycleType(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getIrregularCycleType());//sourceId:113660_1
retData.setCycleType(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getCycleType());//sourceId:113661_1
retData.setOpenMidCycle(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getOpenMidCycle());//sourceId:113662_1
retData.setCycleMode(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getCycleMode());//sourceId:106286_1
retData.setCycleSystemCode(querySchemeClassMatchResultToAnswerDetailComRespDto_1.getCycleSystemCode());//sourceId:106287_1
    }
  

  
  
return retData;
  }
/**
   * B2-3查询配置图标菜单列表(公共)[3167]
   * gen by moon at 9/6/2022, 10:54:31 PM
   */
    @Trace(operationName = "B2-3查询配置图标菜单列表(公共)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQuerySetIconMenusListComRespDto querySetIconMenusListCom(BffQuerySetIconMenusListComReqDto reqDto){
      
       
       QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_1 =null;
//步骤0: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:308348_1
queryConfItemMatchAnswerListComReqDto.setIsInitialScheme("TRUE");//sourceId:114903_1
if(reqDto!=null){
      queryConfItemMatchAnswerListComReqDto.setResultAspObjId(reqDto.getResultAspObjId());//sourceId:114899_1
queryConfItemMatchAnswerListComReqDto.setResultAspObjType(reqDto.getResultAspObjType());//sourceId:114898_1
queryConfItemMatchAnswerListComReqDto.setConfItemCode(reqDto.getConfItemCode());//sourceId:114897_1
    }
  
    /*D2-3查配置项匹配答案列表(公共)（跨服务）[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"B2-3查询配置图标菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-答案归属对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"B2-3查询配置图标菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-答案归属对象类型不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"B2-3查询配置图标菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"B2-3查询配置图标菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-是否平台数据不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsInitialScheme(),"B2-3查询配置图标菜单列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-是否初始方案答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData();
      
      
      queryConfItemMatchAnswerListComRespDto_1 = queryConfItemMatchAnswerListComRespDto;
    
BffQuerySetIconMenusListComRespDto retData = new BffQuerySetIconMenusListComRespDto();
  if(queryConfItemMatchAnswerListComRespDto_1!=null){
      retData.setConfSchemeItemResultList(queryConfItemMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> BeanUtil.toBean(item, BffConfSchemeItemResultDto.class)).collect(Collectors.toList()));//sourceId:114904_1
    }
  

  
  
return retData;
  }

/**
   * B2-3重置客户定制配置结果(平台)[2138]
   * gen by moon at 9/8/2022, 4:06:41 AM
   */
    @Trace(operationName = "B2-3重置客户定制配置结果(平台)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffResetOpenConfItemResultRespDto resetOpenConfItemResult(BffResetOpenConfItemResultReqDto reqDto){
      
       
       //步骤0: D2-3重置开通方案下选项定制配置结果 - resetOpenConfItemResult
     ResetOpenConfItemResultRespDto resetOpenConfItemResultRespDto = null;
    ResetOpenConfItemResultReqDto resetOpenConfItemResultReqDto=new ResetOpenConfItemResultReqDto();
  if(reqDto!=null){
      resetOpenConfItemResultReqDto.setApplexRelId(reqDto.getApplexRelId());//sourceId:314747_1
resetOpenConfItemResultReqDto.setClassConfItemId(reqDto.getClassConfItemId());//sourceId:314651_1
    }
  
    /*D2-3重置开通方案下选项定制配置结果[2140]   */
    Assert.isNull(resetOpenConfItemResultReqDto.getClassConfItemId(),"B2-3重置客户定制配置结果(平台)-D2-3重置开通方案下选项定制配置结果-配置项关系ID不能为空",false);
      resetOpenConfItemResultRespDto = fwCompConfSchemeClient.resetOpenConfItemResult(resetOpenConfItemResultReqDto).getData();
      
      
      
    
BffResetOpenConfItemResultRespDto retData = new BffResetOpenConfItemResultRespDto();
  
  

  
  
return retData;
  }
/**
   * B2-3查询主题下启用的模板方案列表(管理)[4821]
   * gen by moon at 10/9/2022, 11:52:16 PM
   */
    @Trace(operationName = "B2-3查询主题下启用的模板方案列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryThemeOpenEvaTempSchemeListRespDto queryThemeOpenEvaTempSchemeList(BffQueryThemeOpenEvaTempSchemeListReqDto reqDto){
      
       
       BatchQueryConfSchemeListByCodesRespDto batchQueryConfSchemeListByCodesRespDto_1 =null;
//步骤0: D2-3查询主题下启用的模板方案列表 - queryThemeOpenEvaTempSchemeList
     QueryThemeOpenEvaTempSchemeListRespDto queryThemeOpenEvaTempSchemeListRespDto = null;
    QueryThemeOpenEvaTempSchemeListReqDto queryThemeOpenEvaTempSchemeListReqDto=new QueryThemeOpenEvaTempSchemeListReqDto();
  if(reqDto!=null){
      queryThemeOpenEvaTempSchemeListReqDto.setEvaThemeId(reqDto.getEvaThemeId());//SimpleFieldAssign//sourceId:374377_1
queryThemeOpenEvaTempSchemeListReqDto.setEnableTempSchemeConfItemCode(reqDto.getEnableTempSchemeConfItemCode());//SimpleFieldAssign//sourceId:374383_1
queryThemeOpenEvaTempSchemeListReqDto.setDefaultTempSchemeConfItemCode(reqDto.getDefaultTempSchemeConfItemCode());//SimpleFieldAssign//sourceId:374384_1
queryThemeOpenEvaTempSchemeListReqDto.setTempSchemeIsAllowCutConfItemCode(reqDto.getTempSchemeIsAllowCutConfItemCode());//SimpleFieldAssign//sourceId:374385_1
    }
  
    /*D2-3查询主题下启用的模板方案列表[4822]   */
    Assert.isNull(queryThemeOpenEvaTempSchemeListReqDto.getEvaThemeId(),"B2-3查询主题下启用的模板方案列表(管理)-D2-3查询主题下启用的模板方案列表-评价主题ID不能为空",false);
Assert.isNull(queryThemeOpenEvaTempSchemeListReqDto.getEnableTempSchemeConfItemCode(),"B2-3查询主题下启用的模板方案列表(管理)-D2-3查询主题下启用的模板方案列表-主题下启用的模板配置方案配置项标识不能为空",false);
Assert.isNull(queryThemeOpenEvaTempSchemeListReqDto.getDefaultTempSchemeConfItemCode(),"B2-3查询主题下启用的模板方案列表(管理)-D2-3查询主题下启用的模板方案列表-默认模板配置方案配置项标识不能为空",false);
Assert.isNull(queryThemeOpenEvaTempSchemeListReqDto.getTempSchemeIsAllowCutConfItemCode(),"B2-3查询主题下启用的模板方案列表(管理)-D2-3查询主题下启用的模板方案列表-模板配置方案是否允许切换配置项标识不能为空",false);
      queryThemeOpenEvaTempSchemeListRespDto = fwCompConfSchemeClient.queryThemeOpenEvaTempSchemeList(queryThemeOpenEvaTempSchemeListReqDto).getData();
      
      
      
    
//步骤1: D2-3批量查询配置方案列表ByCodes - batchQueryConfSchemeListByCodes
     BatchQueryConfSchemeListByCodesRespDto batchQueryConfSchemeListByCodesRespDto = null;
    if(queryThemeOpenEvaTempSchemeListRespDto !=null){
          BatchQueryConfSchemeListByCodesReqDto batchQueryConfSchemeListByCodesReqDto=new BatchQueryConfSchemeListByCodesReqDto();
  if(queryThemeOpenEvaTempSchemeListRespDto!=null){
      batchQueryConfSchemeListByCodesReqDto.setConfSchemeList(queryThemeOpenEvaTempSchemeListRespDto.getConfItemMatchEvaThemeAnswerList().stream().map(item->item.getEndValue())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:374407_1
    }
  
    /*D2-3批量查询配置方案列表ByCodes[4823]   */
    
      batchQueryConfSchemeListByCodesRespDto = fwCompConfSchemeClient.batchQueryConfSchemeListByCodes(batchQueryConfSchemeListByCodesReqDto).getData();
      
      
      batchQueryConfSchemeListByCodesRespDto_1 = batchQueryConfSchemeListByCodesRespDto;
           }
    
BffQueryThemeOpenEvaTempSchemeListRespDto retData = new BffQueryThemeOpenEvaTempSchemeListRespDto();
  if(batchQueryConfSchemeListByCodesRespDto_1!=null){
      retData.setConfItemMatchEvaThemeAnswerList(batchQueryConfSchemeListByCodesRespDto_1.getConfSchemeList().stream().map(item -> BeanUtil.toBean(item, BffConfItemMatchEvaThemeAnswerDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:374409_1
    }
  

  
  
return retData;
  }
/**
   * B2-3查询授权的指标业务类型列表(边界)[4882]
   * gen by moon at 10/19/2022, 7:22:53 PM
   */
    @Trace(operationName = "B2-3查询授权的指标业务类型列表(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryImpowerTargetObjBizTypeListBorderRespDto queryImpowerTargetObjBizTypeListBorder(BffQueryImpowerTargetObjBizTypeListBorderReqDto reqDto){


       QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_1 =null;
//步骤0: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:380754_1
queryConfItemMatchAnswerListComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:380753_1
queryConfItemMatchAnswerListComReqDto.setConfItemCode("ENABLE_TARGET_OBJ_TEMP_BIZ_TYPE");//CUSTOM_CONVENTION//sourceId:380752_1
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:380755_1

    /*D2-3查启用的指标模板业务类型[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"B2-3查询授权的指标业务类型列表(边界)-D2-3查启用的指标模板业务类型-答案归属对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"B2-3查询授权的指标业务类型列表(边界)-D2-3查启用的指标模板业务类型-答案归属对象类型不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"B2-3查询授权的指标业务类型列表(边界)-D2-3查启用的指标模板业务类型-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"B2-3查询授权的指标业务类型列表(边界)-D2-3查启用的指标模板业务类型-是否平台数据不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData();


      queryConfItemMatchAnswerListComRespDto_1 = queryConfItemMatchAnswerListComRespDto;

BffQueryImpowerTargetObjBizTypeListBorderRespDto retData = new BffQueryImpowerTargetObjBizTypeListBorderRespDto();
  if(queryConfItemMatchAnswerListComRespDto_1!=null){
      retData.setImpowerTargetObjBizTypeList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> {
      BffImpowerTargetObjBizTypeDto elm = new BffImpowerTargetObjBizTypeDto();
      if(item!=null){
      elm.setObjectiveValueTypeCode(item.getEndValue());//SimpleFieldAssign//sourceId:107945_2
elm.setObjectiveValueTypeName(item.getConfOptionName());//SimpleFieldAssign//sourceId:107946_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:380763_1
    }




return retData;
  }
/**
   * B2-3查评价模板预算配置[2847]
   * gen by moon at 11/6/2022, 6:39:19 PM
   */
    @Trace(operationName = "B2-3查评价模板预算配置")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryEvaTempBudgetSetDetailRespDto queryEvaTempBudgetSetDetail(BffQueryEvaTempBudgetSetDetailReqDto reqDto){
      
       
       QuerySchemeClassMatchEvaTempAnswerDetailComRespDto querySchemeClassMatchEvaTempAnswerDetailComRespDto_1 =null;
//步骤0: D2-3查询分组匹配模板答案公共)(跨服务） - querySchemeClassMatchEvaTempAnswerDetailCom
     QuerySchemeClassMatchEvaTempAnswerDetailComRespDto querySchemeClassMatchEvaTempAnswerDetailComRespDto = null;
    QuerySchemeClassMatchEvaTempAnswerDetailComReqDto querySchemeClassMatchEvaTempAnswerDetailComReqDto=new QuerySchemeClassMatchEvaTempAnswerDetailComReqDto();
  querySchemeClassMatchEvaTempAnswerDetailComReqDto.setConfItemClassCode("BUDGET_SET_CLASS");//CUSTOM_CONVENTION//sourceId:423134_1
querySchemeClassMatchEvaTempAnswerDetailComReqDto.setIsSingleResult("TRUE");//sourceId:423179_1
querySchemeClassMatchEvaTempAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:423190_1
if(reqDto!=null){
      querySchemeClassMatchEvaTempAnswerDetailComReqDto.setResultAspObjId(reqDto.getResultAspObjId());//SimpleFieldAssign//sourceId:423136_1
    }
  
    /*D2-3查询分组匹配模板答案公共)(跨服务）[3069]   */
    Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getResultAspObjId(),"B2-3查评价模板预算配置-D2-3查询分组匹配模板答案公共)(跨服务）-评价模板ID不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getConfItemClassCode(),"B2-3查评价模板预算配置-D2-3查询分组匹配模板答案公共)(跨服务）-分组标识不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getIsSingleResult(),"B2-3查评价模板预算配置-D2-3查询分组匹配模板答案公共)(跨服务）-是否单一答案不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getIsPlatData(),"B2-3查评价模板预算配置-D2-3查询分组匹配模板答案公共)(跨服务）-是否平台数据不能为空",false);
      querySchemeClassMatchEvaTempAnswerDetailComRespDto = fwCompConfSchemeClient.querySchemeClassMatchEvaTempAnswerDetailCom(querySchemeClassMatchEvaTempAnswerDetailComReqDto).getData();
      
      
      querySchemeClassMatchEvaTempAnswerDetailComRespDto_1 = querySchemeClassMatchEvaTempAnswerDetailComRespDto;
    
BffQueryEvaTempBudgetSetDetailRespDto retData = new BffQueryEvaTempBudgetSetDetailRespDto();
  if(querySchemeClassMatchEvaTempAnswerDetailComRespDto_1!=null){
      retData.setIsOpenBudget(querySchemeClassMatchEvaTempAnswerDetailComRespDto_1.getIsOpenBudget());//SimpleFieldAssign//sourceId:423201_1
retData.setBudgetHierarchy(querySchemeClassMatchEvaTempAnswerDetailComRespDto_1.getBudgetHierarchy());//SimpleFieldAssign//sourceId:423200_1
    }
  

  
  
return retData;
  }
/**
   * B2-3查询目标内容配置数据[5426]
   * gen by moon at 9/15/2024, 5:11:35 PM
   */
    @Trace(operationName = "B2-3查询目标内容配置数据")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryWeightConfTacticsDetailComRespDto queryWeightConfTacticsDetailCom(BffQueryWeightConfTacticsDetailComReqDto reqDto){


       QuerySchemeMatchSingleResultToAnswerDetailComRespDto querySchemeMatchSingleResultToAnswerDetailComRespDto_1 =null;
QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_1 =null;
QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_3 =null;
QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_1 =null;
//virtualUsage D2-3查评价模板单选答案（权重设置方式、评价模板类型、建设任务是否开启汇报）  72813
     QuerySchemeMatchSingleResultToAnswerDetailComRespDto querySchemeMatchSingleResultToAnswerDetailComRespDto = null;
    QuerySchemeMatchSingleResultToAnswerDetailComReqDto querySchemeMatchSingleResultToAnswerDetailComReqDto=new QuerySchemeMatchSingleResultToAnswerDetailComReqDto();
  querySchemeMatchSingleResultToAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1221969_1_72813
if(reqDto!=null){
      querySchemeMatchSingleResultToAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1221968_1_72813
    }

    /*D2-3查评价模板单选答案（权重设置方式、评价模板类型、建设任务是否开启汇报）[3101]   */
    Assert.isNull(querySchemeMatchSingleResultToAnswerDetailComReqDto.getResultAspObjId(),"B2-3查询目标内容配置数据-D2-3查评价模板单选答案（权重设置方式、评价模板类型、建设任务是否开启汇报）-开通对象ID不能为空",false);
Assert.isNull(querySchemeMatchSingleResultToAnswerDetailComReqDto.getIsPlatData(),"B2-3查询目标内容配置数据-D2-3查评价模板单选答案（权重设置方式、评价模板类型、建设任务是否开启汇报）-是否标准答案不能为空",false);
      querySchemeMatchSingleResultToAnswerDetailComRespDto = fwCompConfSchemeClient.querySchemeMatchSingleResultToAnswerDetailCom(querySchemeMatchSingleResultToAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      querySchemeMatchSingleResultToAnswerDetailComRespDto_1 = querySchemeMatchSingleResultToAnswerDetailComRespDto;
if((reqDto!= null&& reqDto.getEvaluationSubjectId() != null )) {
        //if(B2-3查询评价模板单选答案：模板类型、权重设置配置策略.评价主题ID 值不等于空 )  72814

QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
    com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("EVA_THEME");//sourceId:2002150_1_72850
queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("REPORT_DATA_VIEW_PERMISSION_IDENTITY_CONF");//CUSTOM_CONVENTION//sourceId:2002151_1_72850
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:2002152_1_72850
if(reqDto!=null){
      queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationSubjectId());//SimpleFieldAssign//sourceId:2002149_1_72850
    }

    /*D2-3查评价主题：汇报数据查看权限身份配置[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"B2-3查询目标内容配置数据-D2-3查评价主题：汇报数据查看权限身份配置-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(),"B2-3查询目标内容配置数据-D2-3查评价主题：汇报数据查看权限身份配置-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"B2-3查询目标内容配置数据-D2-3查评价主题：汇报数据查看权限身份配置-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"B2-3查询目标内容配置数据-D2-3查评价主题：汇报数据查看权限身份配置-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchAnswerDetailComRespDto_1 = queryConfItemMatchAnswerDetailComRespDto;
QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_2 = null;
    com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto_1=new com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto_1.setResultAspObjType("EVA_THEME");//sourceId:1998563_1_72815
queryConfItemMatchAnswerDetailComReqDto_1.setConfItemCode("IS_OPEN_MID_LEAD_TARGET_SELECT");//CUSTOM_CONVENTION//sourceId:1998562_1_72815
queryConfItemMatchAnswerDetailComReqDto_1.setIsPlatData("FALSE");//sourceId:1998571_1_72815
if(reqDto!=null){
      queryConfItemMatchAnswerDetailComReqDto_1.setResultAspObjId(reqDto.getEvaluationSubjectId());//SimpleFieldAssign//sourceId:1998564_1_72815
    }

    /*D2-3查评价主题：是否开启中层牵头目标筛选[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_1.getResultAspObjType(),"B2-3查询目标内容配置数据-D2-3查评价主题：是否开启中层牵头目标筛选-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_1.getConfItemCode(),"B2-3查询目标内容配置数据-D2-3查评价主题：是否开启中层牵头目标筛选-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_1.getIsPlatData(),"B2-3查询目标内容配置数据-D2-3查评价主题：是否开启中层牵头目标筛选-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto_2 = fwCompConfSchemeClient.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchAnswerDetailComRespDto_3 = queryConfItemMatchAnswerDetailComRespDto_2;
if((queryConfItemMatchAnswerDetailComRespDto_2!= null&&  queryConfItemMatchAnswerDetailComRespDto_2.getEndValue() !=null && queryConfItemMatchAnswerDetailComRespDto_2.getEndValue().equals("TRUE"))) {
        //if(D2-3查评价主题：是否开启中层牵头目标筛选.答案值 等于 是)  72816

QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setResultAspObjType("EVA_THEME");//sourceId:1998585_1_72817
queryConfItemMatchAnswerListComReqDto.setConfItemCode("MID_TARGET_SELECT_CONFIG");//CUSTOM_CONVENTION//sourceId:1998584_1_72817
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:1998587_1_72817
if(reqDto!=null){
      queryConfItemMatchAnswerListComReqDto.setResultAspObjId(reqDto.getEvaluationSubjectId());//SimpleFieldAssign//sourceId:1998586_1_72817
    }

    /*D2-3查评价主题：中层目标筛选项[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"B2-3查询目标内容配置数据-D2-3查评价主题：中层目标筛选项-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"B2-3查询目标内容配置数据-D2-3查评价主题：中层目标筛选项-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"B2-3查询目标内容配置数据-D2-3查评价主题：中层目标筛选项-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"B2-3查询目标内容配置数据-D2-3查评价主题：中层目标筛选项-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchAnswerListComRespDto_1 = queryConfItemMatchAnswerListComRespDto;
      }
      }
BffQueryWeightConfTacticsDetailComRespDto retData = new BffQueryWeightConfTacticsDetailComRespDto();
  if(querySchemeMatchSingleResultToAnswerDetailComRespDto_1!=null){
      retData.setWeightSetWay(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getWeightSetWay());//SimpleFieldAssign//sourceId:1221970_1
retData.setEvaluationTemplateTypeCode(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getEvaluationTemplateTypeCode());//SimpleFieldAssign//sourceId:1221971_1
retData.setConstTaskIsOpenReport(querySchemeMatchSingleResultToAnswerDetailComRespDto_1.getConstTaskIsOpenReport());//SimpleFieldAssign//sourceId:1996172_1
    }
if(queryConfItemMatchAnswerDetailComRespDto_3!=null){
      retData.setEndValue(queryConfItemMatchAnswerDetailComRespDto_3.getEndValue());//SimpleFieldAssign//sourceId:1998598_1
    }
if(queryConfItemMatchAnswerDetailComRespDto_1!=null){
      retData.setReportDataViewPermissionIdentityConf(queryConfItemMatchAnswerDetailComRespDto_1.getEndValue());//SimpleFieldAssign//sourceId:2002153_1
    }
if(queryConfItemMatchAnswerListComRespDto_1!=null){
      retData.setMidTargetSelectConfigList(queryConfItemMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> BeanUtil.toBean(item, BffMidTargetSelectConfigDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1998599_1
    }




return retData;
  }
/**
   * B2-3查询单位及数字单位列表(管理)[5448]
   * gen by moon at 12/12/2022, 1:35:12 PM
   */
    @Trace(operationName = "B2-3查询单位及数字单位列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryUnitAndDigitalUnitListRespDto queryUnitAndDigitalUnitList(BffQueryUnitAndDigitalUnitListReqDto reqDto){


       QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_1 =null;
//步骤0: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setConfItemCode("UNIT");//CUSTOM_CONVENTION//sourceId:506976_1
queryConfItemMatchAnswerListComReqDto.setConfSchemeCode("COM_CONF_SCHEME");//CUSTOM_CONVENTION//sourceId:506975_1
queryConfItemMatchAnswerListComReqDto.setIsPlatData("TRUE");//sourceId:506979_1

    /*D2-3查配置项匹配答案列表(公共)（跨服务）[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"B2-3查询单位及数字单位列表(管理)-D2-3查配置项匹配答案列表(公共)（跨服务）-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfSchemeCode(),"B2-3查询单位及数字单位列表(管理)-D2-3查配置项匹配答案列表(公共)（跨服务）-配置方案标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"B2-3查询单位及数字单位列表(管理)-D2-3查配置项匹配答案列表(公共)（跨服务）-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData();


      queryConfItemMatchAnswerListComRespDto_1 = queryConfItemMatchAnswerListComRespDto;

BffQueryUnitAndDigitalUnitListRespDto retData = new BffQueryUnitAndDigitalUnitListRespDto();
  if(queryConfItemMatchAnswerListComRespDto_1!=null){
      retData.setUnitAndDigitalUnitList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> {
      BffUnitAndDigitalUnitDto elm = new BffUnitAndDigitalUnitDto();
      if(item!=null){
      elm.setOptionResultId(item.getOptionResultId());//SimpleFieldAssign//sourceId:131305_2
elm.setUnitCode(item.getEndValue());//SimpleFieldAssign//sourceId:131306_2
elm.setUnitName(item.getConfOptionName());//SimpleFieldAssign//sourceId:131308_2
elm.setDigitalUnit(item.getExtensionField1());//SimpleFieldAssign//sourceId:131309_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:506421_1
    }




return retData;
  }
/**
   * B2-3查询简易评分体系列表(公共)[5460]
   * gen by moon at 12/13/2022, 4:54:38 PM
   */
    @Trace(operationName = "B2-3查询简易评分体系列表(公共)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQuerySimpleEvaScoreSystemListComRespDto querySimpleEvaScoreSystemListCom(BffQuerySimpleEvaScoreSystemListComReqDto reqDto){


       QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_1 =null;
//步骤0: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setResultAspObjType("EVA_TEMP");//sourceId:511307_1
queryConfItemMatchAnswerListComReqDto.setConfItemCode("SIMPLE_EVA_SCORE_GRADE_SYSTEM");//CUSTOM_CONVENTION//sourceId:511306_1
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:511309_1
if(reqDto!=null){
      queryConfItemMatchAnswerListComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:511308_1
    }

    /*D2-3查配置项匹配答案列表(公共)（跨服务）[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"B2-3查询简易评分体系列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-答案归属对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"B2-3查询简易评分体系列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-答案归属对象类型不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"B2-3查询简易评分体系列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"B2-3查询简易评分体系列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData();


      queryConfItemMatchAnswerListComRespDto_1 = queryConfItemMatchAnswerListComRespDto;

BffQuerySimpleEvaScoreSystemListComRespDto retData = new BffQuerySimpleEvaScoreSystemListComRespDto();
  if(queryConfItemMatchAnswerListComRespDto_1!=null){
      retData.setSimpleEvaScoreSystemList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> {
      BffSimpleEvaScoreSystemDto elm = new BffSimpleEvaScoreSystemDto();
      if(item!=null){
      elm.setGradeId(item.getOptionResultId());//SimpleFieldAssign//sourceId:132399_2
elm.setGradeCode(item.getEndValue());//SimpleFieldAssign//sourceId:132400_2
elm.setGradeScore(item.getExtensionField2());//SimpleFieldAssign//sourceId:132403_2
elm.setScoreUnit(item.getExtensionField1());//SimpleFieldAssign//sourceId:132402_2
elm.setGradeNickName(item.getExtensionField3());//SimpleFieldAssign//sourceId:132404_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:511314_1
    }




return retData;
  }
/**
   * B2获取进度用途类型背景图配置项标识(管理)[7271]
   * gen by moon at 1/18/2024, 7:21:28 PM
   */
    @Trace(operationName = "B2获取进度用途类型背景图配置项标识(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffObtainProgressUseTypeBgConfCodeRespDto obtainProgressUseTypeBgConfCode(BffObtainProgressUseTypeBgConfCodeReqDto reqDto){


       ObtainProgressUseTypeBgConfCodeComRespDto obtainProgressUseTypeBgConfCodeComRespDto_1 =null;
//步骤0: D2获取进度用途类型背景图配置项标识(公共) - obtainProgressUseTypeBgConfCodeCom
     ObtainProgressUseTypeBgConfCodeComRespDto obtainProgressUseTypeBgConfCodeComRespDto = null;
    ObtainProgressUseTypeBgConfCodeComReqDto obtainProgressUseTypeBgConfCodeComReqDto=new ObtainProgressUseTypeBgConfCodeComReqDto();
  if(reqDto!=null){
      obtainProgressUseTypeBgConfCodeComReqDto.setUseTypeCode(reqDto.getUseTypeCode());//SimpleFieldAssign//sourceId:1071143_1
    }

    /*D2获取进度用途类型背景图配置项标识(公共)[7267]   */
    Assert.isNull(obtainProgressUseTypeBgConfCodeComReqDto.getUseTypeCode(),"B2获取进度用途类型背景图配置项标识(管理)-D2获取进度用途类型背景图配置项标识(公共)-用途类型编码不能为空",false);
      obtainProgressUseTypeBgConfCodeComRespDto = fwCompConfSchemeClient.obtainProgressUseTypeBgConfCodeCom(obtainProgressUseTypeBgConfCodeComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      obtainProgressUseTypeBgConfCodeComRespDto_1 = obtainProgressUseTypeBgConfCodeComRespDto;

BffObtainProgressUseTypeBgConfCodeRespDto retData = new BffObtainProgressUseTypeBgConfCodeRespDto();
  if(obtainProgressUseTypeBgConfCodeComRespDto_1!=null){
      retData.setConfItemCode(obtainProgressUseTypeBgConfCodeComRespDto_1.getConfItemCode());//SimpleFieldAssign//sourceId:1071146_1
      // TODO: 2024/1/18
retData.setBackGroundAddress(CommonFunctionHelper.getFilePath(obtainProgressUseTypeBgConfCodeComRespDto_1.getBackGroundAddress()));//SimpleFieldAssign//sourceId:1490373_1
retData.setExtensionField3(obtainProgressUseTypeBgConfCodeComRespDto_1.getExtensionField3());//SimpleFieldAssign//sourceId:1072544_1
    }




return retData;
  }
/**
   * B2查询空间公共文案列表(公共)[7554]
   * gen by moon at 10/16/2023, 3:40:00 PM
   */
    @Trace(operationName = "B2查询空间公共文案列表(公共)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQuerySapceCopywriterConfListComRespDto querySapceCopywriterConfListCom(BffQuerySapceCopywriterConfListComReqDto reqDto){


       QuerySchemeClassMatchAnswerListComRespDto querySchemeClassMatchAnswerListComRespDto_1 =null;
//步骤0: D2-3查分组匹配答案列表(公共)（跨服务） - querySchemeClassMatchAnswerListCom
     QuerySchemeClassMatchAnswerListComRespDto querySchemeClassMatchAnswerListComRespDto = null;
    QuerySchemeClassMatchAnswerListComReqDto querySchemeClassMatchAnswerListComReqDto=new QuerySchemeClassMatchAnswerListComReqDto();
  querySchemeClassMatchAnswerListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1183317_1
querySchemeClassMatchAnswerListComReqDto.setConfItemClassCode("SAPCE_COPYWRITER_CONF_CLASS");//CUSTOM_CONVENTION//sourceId:1183318_1
querySchemeClassMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:1183319_1

    /*D2-3查空间下公共文案配置答案[2848]   */
    Assert.isNull(querySchemeClassMatchAnswerListComReqDto.getResultAspObjId(),"B2查询空间公共文案列表(公共)-D2-3查空间下公共文案配置答案-开通对象ID不能为空",false);
Assert.isNull(querySchemeClassMatchAnswerListComReqDto.getConfItemClassCode(),"B2查询空间公共文案列表(公共)-D2-3查空间下公共文案配置答案-分组标识不能为空",false);
Assert.isNull(querySchemeClassMatchAnswerListComReqDto.getIsPlatData(),"B2查询空间公共文案列表(公共)-D2-3查空间下公共文案配置答案-是否标准答案不能为空",false);
      querySchemeClassMatchAnswerListComRespDto = fwCompConfSchemeClient.querySchemeClassMatchAnswerListCom(querySchemeClassMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      querySchemeClassMatchAnswerListComRespDto_1 = querySchemeClassMatchAnswerListComRespDto;

BffQuerySapceCopywriterConfListComRespDto retData = new BffQuerySapceCopywriterConfListComRespDto();
  if(querySchemeClassMatchAnswerListComRespDto_1!=null){
      retData.setSapceCopywriterList(querySchemeClassMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> BeanUtil.toBean(item, BffSapceCopywriterDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1183321_1
    }




return retData;
  }
/**
   * B2获取空间开通场景[7868]
   * gen by moon at 11/9/2023, 10:42:12 PM
   */
    @Trace(operationName = "B2获取空间开通场景")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffObtainSpaceOpenSceneRespDto obtainSpaceOpenScene(BffObtainSpaceOpenSceneReqDto reqDto){


       QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_1 =null;
QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_1 =null;
//步骤0: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1281332_1
queryConfItemMatchAnswerListComReqDto.setConfItemCode("TENANT_SCENE");//CUSTOM_CONVENTION//sourceId:1281331_1
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:1281333_1

    /*D2-3查开通场景列表[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"B2获取空间开通场景-D2-3查开通场景列表-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"B2获取空间开通场景-D2-3查开通场景列表-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"B2获取空间开通场景-D2-3查开通场景列表-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchAnswerListComRespDto_1 = queryConfItemMatchAnswerListComRespDto;

//步骤1: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
     QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
    com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1281351_1
queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("DEFAULT_SCENE_CONF");//CUSTOM_CONVENTION//sourceId:1281352_1
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1281353_1

    /*D2查默认场景标识[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"B2获取空间开通场景-D2查默认场景标识-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"B2获取空间开通场景-D2查默认场景标识-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"B2获取空间开通场景-D2查默认场景标识-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchAnswerDetailComRespDto_1 = queryConfItemMatchAnswerDetailComRespDto;

BffObtainSpaceOpenSceneRespDto retData = new BffObtainSpaceOpenSceneRespDto();
  if(queryConfItemMatchAnswerListComRespDto_1!=null){
      retData.setSpaceOpenSceneList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> {
      BffSpaceOpenSceneDto elm = new BffSpaceOpenSceneDto();
      if(item!=null){
      elm.setIcon(item.getExtensionField1());//SimpleFieldAssign//sourceId:263576_2
elm.setSceneCode(item.getEndValue());//SimpleFieldAssign//sourceId:263575_2
elm.setSceneName(item.getExtensionField2());//SimpleFieldAssign//sourceId:263577_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1281335_1
    }
if(queryConfItemMatchAnswerDetailComRespDto_1!=null){
      retData.setDefaultSceneCode(queryConfItemMatchAnswerDetailComRespDto_1.getEndValue());//SimpleFieldAssign//sourceId:1281354_1
    }




return retData;
  }
/**
   * B2查问题筛选条件列表(边界)[7738]
   * gen by moon at 11/12/2023, 4:19:43 AM
   */
    @Trace(operationName = "B2查问题筛选条件列表(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryQuestionScreenConditionListBorderRespDto queryQuestionScreenConditionListBorder(BffQueryQuestionScreenConditionListBorderReqDto reqDto){


       QueryQuestionScreenConditionListRespDto queryQuestionScreenConditionListRespDto_1 =null;
//步骤0: D2查问题筛选条件列表 - queryQuestionScreenConditionList
     QueryQuestionScreenConditionListRespDto queryQuestionScreenConditionListRespDto = null;
    QueryQuestionScreenConditionListReqDto queryQuestionScreenConditionListReqDto=new QueryQuestionScreenConditionListReqDto();
  queryQuestionScreenConditionListReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1249164_1

    /*D2查问题筛选条件列表[7743]   */
    Assert.isNull(queryQuestionScreenConditionListReqDto.getResultAspObjId(),"B2查问题筛选条件列表(边界)-D2查问题筛选条件列表-开通对象ID不能为空",false);
      queryQuestionScreenConditionListRespDto = fwCompConfSchemeClient.queryQuestionScreenConditionList(queryQuestionScreenConditionListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryQuestionScreenConditionListRespDto_1 = queryQuestionScreenConditionListRespDto;

BffQueryQuestionScreenConditionListBorderRespDto retData = new BffQueryQuestionScreenConditionListBorderRespDto();
  if(queryQuestionScreenConditionListRespDto_1!=null){
      retData.setObjectTypeList(queryQuestionScreenConditionListRespDto_1.getObjectTypeList().stream().map(item -> BeanUtil.toBean(item, BffObjectTypeDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1249168_1
retData.setQuestionStatusList(queryQuestionScreenConditionListRespDto_1.getQuestionStatusList().stream().map(item -> BeanUtil.toBean(item, BffQuestionStatusDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1249167_1
retData.setAngleScreenList(queryQuestionScreenConditionListRespDto_1.getAngleScreenList().stream().map(item -> BeanUtil.toBean(item, BffAngleScreenDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1300453_1
    }




return retData;
  }
/**
   * B2查工作任务筛选条件列表(边界)[7739]
   * gen by moon at 11/14/2023, 6:39:53 PM
   */
    @Trace(operationName = "B2查工作任务筛选条件列表(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryWorkTaskScreenConditionListBorderRespDto queryWorkTaskScreenConditionListBorder(BffQueryWorkTaskScreenConditionListBorderReqDto reqDto){


       QueryWorkTaskScreenConditionListRespDto queryWorkTaskScreenConditionListRespDto_1 =null;
//步骤0: D2查工作任务筛选条件列表 - queryWorkTaskScreenConditionList
     QueryWorkTaskScreenConditionListRespDto queryWorkTaskScreenConditionListRespDto = null;
    QueryWorkTaskScreenConditionListReqDto queryWorkTaskScreenConditionListReqDto=new QueryWorkTaskScreenConditionListReqDto();
  queryWorkTaskScreenConditionListReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1249307_1

    /*D2查工作任务筛选条件列表[7742]   */
    Assert.isNull(queryWorkTaskScreenConditionListReqDto.getResultAspObjId(),"B2查工作任务筛选条件列表(边界)-D2查工作任务筛选条件列表-开通对象ID不能为空",false);
      queryWorkTaskScreenConditionListRespDto = fwCompConfSchemeClient.queryWorkTaskScreenConditionList(queryWorkTaskScreenConditionListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryWorkTaskScreenConditionListRespDto_1 = queryWorkTaskScreenConditionListRespDto;

BffQueryWorkTaskScreenConditionListBorderRespDto retData = new BffQueryWorkTaskScreenConditionListBorderRespDto();
  if(queryWorkTaskScreenConditionListRespDto_1!=null){
      retData.setObjectTypeList(queryWorkTaskScreenConditionListRespDto_1.getObjectTypeList().stream().map(item -> BeanUtil.toBean(item, BffObjectTypeDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1249386_1
retData.setTaskStatusList(queryWorkTaskScreenConditionListRespDto_1.getTaskStatusList().stream().map(item -> BeanUtil.toBean(item, BffTaskStatusDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1249387_1
retData.setWorkTaskTypeList(queryWorkTaskScreenConditionListRespDto_1.getWorkTaskTypeList().stream().map(item -> BeanUtil.toBean(item, BffWorkTaskTypeDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1249388_1
retData.setAngleScreenList(queryWorkTaskScreenConditionListRespDto_1.getAngleScreenList().stream().map(item -> BeanUtil.toBean(item, BffAngleScreenDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1300484_1
    }




return retData;
  }
/**
   * B2查询工作任务来源列表[7936]
   * gen by moon at 11/12/2023, 10:22:05 PM
   */
    @Trace(operationName = "B2查询工作任务来源列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryWorkTaskSourceListRespDto queryWorkTaskSourceList(BffQueryWorkTaskSourceListReqDto reqDto){


       QueryOptionMatchResultExtendListComRespDto queryOptionMatchResultExtendListComRespDto_1 =null;
//步骤0: D2-选项匹配结果扩展信息列表(公共) - queryOptionMatchResultExtendListCom
     QueryOptionMatchResultExtendListComRespDto queryOptionMatchResultExtendListComRespDto = null;
    QueryOptionMatchResultExtendListComReqDto queryOptionMatchResultExtendListComReqDto=new QueryOptionMatchResultExtendListComReqDto();
  queryOptionMatchResultExtendListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1312405_1
queryOptionMatchResultExtendListComReqDto.setConfItemCode("WROK_TASK_SOURCE_CONF");//CUSTOM_CONVENTION//sourceId:1312404_1
queryOptionMatchResultExtendListComReqDto.setIsPlatData("FALSE");//sourceId:1312406_1
if(reqDto!=null){
//      queryOptionMatchResultExtendListComReqDto.setExtensionField1(reqDto.getSourceTypeCode());//SimpleFieldAssign//sourceId:1312407_1
    }

    /*D2-选项匹配结果扩展信息列表(公共)[7564]   */
    Assert.isNull(queryOptionMatchResultExtendListComReqDto.getResultAspObjId(),"B2查询工作任务来源列表-D2-选项匹配结果扩展信息列表(公共)-开通对象ID不能为空",false);
Assert.isNull(queryOptionMatchResultExtendListComReqDto.getConfItemCode(),"B2查询工作任务来源列表-D2-选项匹配结果扩展信息列表(公共)-配置项标识不能为空",false);
Assert.isNull(queryOptionMatchResultExtendListComReqDto.getIsPlatData(),"B2查询工作任务来源列表-D2-选项匹配结果扩展信息列表(公共)-是否标准答案不能为空",false);
      queryOptionMatchResultExtendListComRespDto = fwCompConfSchemeClient.queryOptionMatchResultExtendListCom(queryOptionMatchResultExtendListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryOptionMatchResultExtendListComRespDto_1 = queryOptionMatchResultExtendListComRespDto;

BffQueryWorkTaskSourceListRespDto retData = new BffQueryWorkTaskSourceListRespDto();
  if(queryOptionMatchResultExtendListComRespDto_1!=null){
      retData.setWorkTaskSourceList(//objList-to-objLists
        queryOptionMatchResultExtendListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> {
      BffWorkTaskSourceDto elm = new BffWorkTaskSourceDto();
      if(item!=null){
      elm.setSourceCode(item.getEndValue());//SimpleFieldAssign//sourceId:267787_2
elm.setSourceName(item.getExtensionField2());//SimpleFieldAssign//sourceId:267788_2
elm.setSourceTypeCode(item.getExtensionField1());//SimpleFieldAssign//sourceId:267789_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1312411_1
    }




return retData;
  }
/**
   * B2查询问题等级列表[7937]
   * gen by moon at 11/12/2023, 10:22:17 PM
   */
    @Trace(operationName = "B2查询问题等级列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryQuestionGradeListRespDto queryQuestionGradeList(BffQueryQuestionGradeListReqDto reqDto){


       QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_1 =null;
//步骤0: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1312422_1
queryConfItemMatchAnswerListComReqDto.setConfItemCode("QUESTION_GRADE_CONF");//CUSTOM_CONVENTION//sourceId:1312421_1
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:1312423_1

    /*D2-3查问题等级配置列表[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"B2查询问题等级列表-D2-3查问题等级配置列表-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"B2查询问题等级列表-D2-3查问题等级配置列表-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"B2查询问题等级列表-D2-3查问题等级配置列表-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchAnswerListComRespDto_1 = queryConfItemMatchAnswerListComRespDto;

BffQueryQuestionGradeListRespDto retData = new BffQueryQuestionGradeListRespDto();
  if(queryConfItemMatchAnswerListComRespDto_1!=null){
      retData.setQuestionGradeList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> {
      BffQuestionGradeDto elm = new BffQuestionGradeDto();
      if(item!=null){
      elm.setQuestionGradeCode(item.getEndValue());//SimpleFieldAssign//sourceId:267803_2
elm.setQuestionGradeName(item.getExtensionField1());//SimpleFieldAssign//sourceId:267804_2
elm.setQuestionGradeIcon(item.getExtensionField2());//SimpleFieldAssign//sourceId:267805_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1312425_1
    }




return retData;
  }
/**
   * B2查消息到达对方重要层级列表(边界)[8032]
   * gen by moon at 11/28/2023, 3:57:30 PM
   */
    @Trace(operationName = "B2查消息到达对方重要层级列表(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMsgReachOtherImportantLevelListBorderRespDto queryMsgReachOtherImportantLevelListBorder(BffQueryMsgReachOtherImportantLevelListBorderReqDto reqDto){


       QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_1 =null;
//步骤0: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1356992_1
queryConfItemMatchAnswerListComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:1356993_1
queryConfItemMatchAnswerListComReqDto.setConfItemCode("MSG_REACH_OTHER_IMPORTANT_LEVEL");//CUSTOM_CONVENTION//sourceId:1356991_1
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:1356994_1

    /*D2-3查配置项匹配答案列表(公共)（跨服务）[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"B2查消息到达对方重要层级列表(边界)-D2-3查配置项匹配答案列表(公共)（跨服务）-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"B2查消息到达对方重要层级列表(边界)-D2-3查配置项匹配答案列表(公共)（跨服务）-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"B2查消息到达对方重要层级列表(边界)-D2-3查配置项匹配答案列表(公共)（跨服务）-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"B2查消息到达对方重要层级列表(边界)-D2-3查配置项匹配答案列表(公共)（跨服务）-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchAnswerListComRespDto_1 = queryConfItemMatchAnswerListComRespDto;

BffQueryMsgReachOtherImportantLevelListBorderRespDto retData = new BffQueryMsgReachOtherImportantLevelListBorderRespDto();
  if(queryConfItemMatchAnswerListComRespDto_1!=null){
      retData.setMsgReachOtherImportantLevelList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> {
      BffMsgReachOtherImportantLevelDto elm = new BffMsgReachOtherImportantLevelDto();
      if(item!=null){
      elm.setLevelName(item.getExtensionField1());//SimpleFieldAssign//sourceId:275979_2
elm.setLevelStory(item.getExtensionField2());//SimpleFieldAssign//sourceId:275980_2
elm.setMsgLevel(item.getEndValue());//SimpleFieldAssign//sourceId:275978_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1356995_1
    }




return retData;
  }
/**
   * B2查询部门业务身份列表[9088]
   * gen by moon at 4/3/2024, 12:02:58 AM
   */
    @Trace(operationName = "B2查询部门业务身份列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryDepartmentBusinessIdentityListRespDto queryDepartmentBusinessIdentityList(BffQueryDepartmentBusinessIdentityListReqDto reqDto){


       QueryConfItemMatchResultExtendListComRespDto queryConfItemMatchResultExtendListComRespDto_1 =null;
//步骤0: D2-3查询配置项匹配结果扩展信息列表(公共) - queryConfItemMatchResultExtendListCom
     QueryConfItemMatchResultExtendListComRespDto queryConfItemMatchResultExtendListComRespDto = null;
    QueryConfItemMatchResultExtendListComReqDto queryConfItemMatchResultExtendListComReqDto=new QueryConfItemMatchResultExtendListComReqDto();
  queryConfItemMatchResultExtendListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1688172_1
queryConfItemMatchResultExtendListComReqDto.setConfItemCode("DEPT_BUSINESS_IDENTITY");//CUSTOM_CONVENTION//sourceId:1688174_1
queryConfItemMatchResultExtendListComReqDto.setIsPlatData("FALSE");//sourceId:1688177_1
if(reqDto!=null){
      queryConfItemMatchResultExtendListComReqDto.setExtensionField2(reqDto.getExtensionField2());//SimpleFieldAssign//sourceId:1688179_1
    }

    /*D2查空间部门业务身份配置列表[3218]   */
    Assert.isNull(queryConfItemMatchResultExtendListComReqDto.getResultAspObjId(),"B2查询部门业务身份列表-D2查空间部门业务身份配置列表-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchResultExtendListComReqDto.getConfItemCode(),"B2查询部门业务身份列表-D2查空间部门业务身份配置列表-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchResultExtendListComReqDto.getIsPlatData(),"B2查询部门业务身份列表-D2查空间部门业务身份配置列表-是否标准答案不能为空",false);
      queryConfItemMatchResultExtendListComRespDto = fwCompConfSchemeClient.queryConfItemMatchResultExtendListCom(queryConfItemMatchResultExtendListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchResultExtendListComRespDto_1 = queryConfItemMatchResultExtendListComRespDto;

BffQueryDepartmentBusinessIdentityListRespDto retData = new BffQueryDepartmentBusinessIdentityListRespDto();
  if(queryConfItemMatchResultExtendListComRespDto_1!=null){
      retData.setConfSchemeItemResultList(//objList-to-objLists
        queryConfItemMatchResultExtendListComRespDto_1.getConfSchemeItemResultList().stream().map(item -> {
      BffConfSchemeItemResultDto elm = new BffConfSchemeItemResultDto();
      if(item!=null){
      elm.setDeptBusinessIdentityCode(item.getEndValue());//SimpleFieldAssign//sourceId:331239_2
elm.setDeptBusinessIdentityName(item.getExtensionField1());//SimpleFieldAssign//sourceId:331240_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1688207_1
    }




return retData;
  }
    //
}
